package com.jl.jlapp.utils;

import android.os.CountDownTimer;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class CountDownTimerUtilsForLimitAD
  extends CountDownTimer
{
  RelativeLayout mRelativeLayout;
  private TextView mTextView;
  
  public CountDownTimerUtilsForLimitAD(RelativeLayout paramRelativeLayout, TextView paramTextView, long paramLong1, long paramLong2)
  {
    super(paramLong1, paramLong2);
    this.mTextView = paramTextView;
    this.mRelativeLayout = paramRelativeLayout;
  }
  
  public void onFinish()
  {
    this.mRelativeLayout.setVisibility(View.GONE);
  }
  
  public void onTick(long paramLong)
  {
    long l1 = paramLong / 1000L;
    paramLong = l1 / 3600L;
    long l2 = l1 % 3600L;
    l1 = l2 / 60L;
    l2 %= 60L;
    String str1 = paramLong + "";
    if (paramLong < 10L) {
      str1 = "0" + paramLong;
    }
    String str2 = l1 + "";
    if (l1 < 10L) {
      str2 = "0" + l1;
    }
    String str3 = l2 + "";
    if (l2 < 10L) {
      str3 = "0" + l2;
    }
    this.mTextView.setText(str1 + ":" + str2 + ":" + str3);
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/utils/CountDownTimerUtilsForLimitAD.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */